function confirmDeletePlayer(id, name, player_id){
	var answer = confirm("Do you want to delete \""+name+"\" ?");
	if (answer){
		window.location.href = '/team/playerForMaster/'+player_id+'/delItem/'+id+'/'
	}
}

function confirmDeleteChest(id, name){
	var answer = confirm("Do you want to delete \""+name+"\" ?");
	if (answer){
		window.location.href = '/team/delItem/'+id+'/'
	}
}

function description_onfocus(ta){
	if (ta.innerHTML == "description..."){
		ta.innerHTML = "";
	}
}

function description_onblur(ta){
	if (ta.innerHTML == ""){
		ta.innerHTML = "description...";
	}
}

function goToPage(select){
	if (select.value != ''){
		window.location.href = select.value;
	}
}

function goToAnchorOnLoad(){
	if (typeof onLoadAnchor != 'undefined'){
		if (onLoadAnchor != ''){
			window.location.href = onLoadAnchor;
		}
	}
}

window.onload = goToAnchorOnLoad;

